import { handleUrlParams } from "../../utils/util"
Page({
	data: {
		imageSrcList: [],
	},
	onLoad: function (options) {
		const imageSrcList = options.srcList
			? JSON.parse(decodeURIComponent(options.srcList))
			: []
		options.src && imageSrcList.push(decodeURIComponent(options.src))
		this.setData({
			imageSrcList: imageSrcList,
		})
		//动态设置页面标题
		if (options.pageTitle) {
			wx.setNavigationBarTitle({
				title: decodeURIComponent(options.pageTitle),
			})
		}
	},
})
